import request from '@/utils/request'

// 发布订单
export const releaseOrderService = (data) => request.post('/order/release', data)

// 订单列表
export const getorderListService = (currentPage, pageSize) =>
  request.get('/order/orderlist', { params: { currentPage, pageSize } })

// 根据订单状态获取订单列表
export const getorderListByStatusService = (currentPage, pageSize, status) =>
  request.get('/order/orderlistbystatus', { params: { currentPage, pageSize, status } })

// 获取订单详细信息
export const getOrderDetailService = (id) => request.get('/order/orderdetail', { params: { id } })

// 支付订单
export const payOrderService = (obj) => request.post('/order/payorder', obj)
// 评价订单
export const evaluateOrderService = (obj) => request.post('/order/evaluateorder', obj)
